﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FileList.ascx.cs" Inherits="HPortal.Module.FileList" %>
<asp:GridView ID="grvArticlelList" runat="server" AutoGenerateColumns="False" 
    SkinID="tGridview" Width="100%" BackColor="White" CellPadding="3">
    <AlternatingRowStyle BackColor="#DCDCDC" />
    <Columns>
        <asp:BoundField DataField="Rowid" HeaderText="STT" ItemStyle-HorizontalAlign="Center" ReadOnly="True" SortExpression="Rowid">
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle HorizontalAlign="Center" Width="30px"/>
        </asp:BoundField>
        <asp:BoundField DataField="Title" HeaderText="Tên tài liệu" ItemStyle-HorizontalAlign="Center" >
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle HorizontalAlign="Justify"></ItemStyle>
        </asp:BoundField>
        <%--<asp:BoundField DataField="FileType" HeaderText="Loại tài liệu">
            <ItemStyle Width="100px" />
        </asp:BoundField>--%>
        <asp:BoundField DataField="DocumentSize" HeaderText="Kích thước(KB)" ItemStyle-HorizontalAlign="Center">
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle Width="110px" HorizontalAlign="Center" />
        </asp:BoundField>
        <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Tải về" >
            <ItemTemplate>
                <a href='<%# System.Configuration.ConfigurationManager.AppSettings["OsPortal.PortalCore.WebPathUserFilesUpload"].ToString() + "/" + DataBinder.Eval(Container, "DataItem.UploadFileID") + "." + DataBinder.Eval(Container, "DataItem.FileExt").ToString().Trim()%>'>
                    Download </a>
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle Width="100px" HorizontalAlign="Center" />
        </asp:TemplateField>
    </Columns>
  <%--  <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
    <SortedAscendingCellStyle BackColor="#F1F1F1" />
    <SortedAscendingHeaderStyle BackColor="#0000A9" />
    <SortedDescendingCellStyle BackColor="#CAC9C9" />
    <SortedDescendingHeaderStyle BackColor="#000065" />--%>
</asp:GridView>
